package com.xywl.escort.view.address;

import com.xywl.escort.base.BasePresenter;
import com.xywl.escort.base.BaseView;
import com.xywl.escort.bean.AddrListResp;
import com.xywl.escort.bean.AddrReq;
import com.xywl.escort.bean.BaseResp;
import com.xywl.escort.bean.DelAddressReq;

/**
 * Created by 32422 on 2017/10/26.
 */

public interface ManageAddressContract {

    interface Presenter extends BasePresenter {
        void takeView(ManageAddressContract.View view);

        void loadAddressList(int pageNum);

        void updateAddressStatus(AddrReq req);

        void delAddress(DelAddressReq req);
    }

    interface View extends BaseView<Presenter> {
        void loadAddressListFailure();

        void loadAddressListSuccess(AddrListResp resp);

        void updateAddressSuccess(BaseResp resp);

        void updateAddressFailure(String msg);

        void delAddressSuccess(BaseResp req);

        void delAddressFailure(String msg);
    }
}
